package com.example.product_practices.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.product_practices.domain.Question;
import com.example.product_practices.mapper.QuestionMapper;
import com.example.product_practices.service.IQuestionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> implements IQuestionService {
    @Override
    public List<Question> previewquestionnaire(String questionnaireId) {
        List<Question> naire_id = this.baseMapper.selectList(new QueryWrapper<Question>().eq("naire_id", questionnaireId));
        return naire_id;
    }
}
